﻿#coding=utf-8
import traceback

if __name__ == '__main__':
    t = [1,2,3]
    b = []
    c = None
    
    try:
        for i in t:
            print(i)
    
        for i in b:
            print(i)
            
        # 这里会报错
        for i in c:
            print(i)
    except Exception as e:
        traceback.print_exc()
    